﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iShoppingDTO;
using iShoppingDAO;

namespace iShoppingBUS
{
    public class ThongTinTaiKhoanBUS
    {
        public static bool insertThongTinTK(ThongTinTaiKhoanDTO tt) {
            return ThongTinTaiKhoanDAO.insertThongTinTK(tt);
        }

        public static bool checkEmail(string email)
        {
            return ThongTinTaiKhoanDAO.checkEmail(email);
        }

        public ThongTinTaiKhoanDTO GetTaiKhoanOfMa(string maTK)
        {
            ThongTinTaiKhoanDAO taiKhoanDao = new ThongTinTaiKhoanDAO();
            return taiKhoanDao.GetThongTinTkOfMa(maTK);
        }
        public bool UpdateThongTinTaiKhoan(ThongTinTaiKhoanDTO ttTaiKhoan)
        {
            ThongTinTaiKhoanDAO taiKhoanDao = new ThongTinTaiKhoanDAO();
            return taiKhoanDao.UpdateThongTinTaiKhoan(ttTaiKhoan);
        }
    }
}
